Skip to content

core(basic sender): fix trailing return type#2081

Merged
ericniebler merged 2 commits into
NVIDIA:mainfrom
romintomasetti:env-trailing-return
May 20, 2026
Merged

core(basic sender): fix trailing return type#2081
ericniebler merged 2 commits into
NVIDIA:mainfrom
romintomasetti:env-trailing-return

Conversation

@romintomasetti

@romintomasetti romintomasetti commented May 18, 2026

Copy link
Copy Markdown
Contributor

This PR changes a decltype(auto) to a proper trailing return type, avoiding instantiation of stuff that ends up trying to instantiate stuff for incomplete types.

I've added a new test that does not compile if the trailing return type is turned back to decltype(auto).

@copy-pr-bot

copy-pr-bot Bot commented May 18, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@romintomasetti

Copy link
Copy Markdown
Contributor Author

@maartenarnst

Signed-off-by: romintomasetti <romin.tomasetti@gmail.com>
@romintomasetti

Copy link
Copy Markdown
Contributor Author

@ericniebler Not sure about the quality of the trailing return type but we need it in our code base to avoid incomplete type issues. Would you have a minute to take a look ? Thks!

Comment thread test/stdexec/algos/adaptors/test_write_env.cpp
Comment thread test/stdexec/algos/adaptors/test_write_env.cpp Outdated
Comment thread test/stdexec/algos/adaptors/test_write_env.cpp
Co-authored-by: Eric Niebler <eniebler@boost.org>
@ericniebler

Copy link
Copy Markdown
Collaborator

/ok to test 161b336

@ericniebler ericniebler merged commit 3a5a798 into NVIDIA:main May 20, 2026
61 of 62 checks passed
@romintomasetti romintomasetti deleted the env-trailing-return branch May 20, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants